package com.isitandroid.coldfireteamapp;

import android.app.Activity;
import android.view.Gravity;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

public class Tools {

	private static Toast mFancyToast;
	
	public static void initTheToast(Activity act) {
		View fancyToast = act.getLayoutInflater().inflate(R.layout.fancy_toast,
				null);
 
		mFancyToast = new Toast(act);
		mFancyToast.setGravity(Gravity.CENTER_VERTICAL, 0, 0);
		mFancyToast.setDuration(Toast.LENGTH_LONG);
		mFancyToast.setView(fancyToast);
 
//		((TextView) mFancyToast.getView()).setText(act.getResources().getString(R.string.toast_text));
 
	}

	public static void showTheToast(String message) {
		((TextView) mFancyToast.getView()).setText(message);
		mFancyToast.show();
	}
	
	
	
}
